Node-RED block in Snap4City Microservice library node-red-contrib-snap4city-user is "change-ownership-my-device">

It allows to change ownership a device.

Inputs

A JSON with these parameters:
deviceId string
the id of the device (you MUST have the ownership of the device)
newownership string
Username of the person to be the new owner of the device

An example of the JSON array filled with correct data:

{
    "deviceId": "deviceId",
    "newownership": "username",
}
    

Outputs

Returns an object containing the change ownership

Details

The node can receive a JSON with the parameters described in the Inputs section and with them generate the output JSON. If the values are not present in the input JSON, these are read by those in the configuration. If they are not present in either part, an error is generated for the necessary parameters.